package com.lanou.mapper;

import com.lanou.bean.Blog;
import com.lanou.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * Created by dllo on 18/2/26.
 */
public interface UserMapper {
    /**
     * 注册,向数据库用户表添加用户
     * @param user
     */
    void addUser(User user);

    /**
     * 登录
     * @return
     * @Param("username") String name,@Param("password") String password
     */
    User findalluser(@Param("username") String name,@Param("password") String password);

    List<User> selectById(Integer id);

    User selectuid(@Param("username") String name);
}
